package com.atqinke.designpattern.behavioraltype.memo.blackbox;

import com.atqinke.designpattern.behavioraltype.memo.whitebox.Memento;

/**
 * @BelongsProject: BasicConnection
 * @BelongsPackage: com.atqinke.designpattern.behavioraltype.memo.blackbox
 * @Author: NieHk
 * @CreateTime: 2022-08-29  17:59
 * @Description: 游戏状态存储类(备忘录类)
 * @Version: 1.0
 */
public class RoleStateMemento {
    private String name;
    private int vit;
    private int atk;
    private int def;

    public RoleStateMemento(int vit, int atk, int def,String name) {
        this.vit = vit;
        this.atk = atk;
        this.def = def;
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getVit() {
        return vit;
    }

    public void setVit(int vit) {
        this.vit = vit;
    }

    public int getAtk() {
        return atk;
    }

    public void setAtk(int atk) {
        this.atk = atk;
    }

    public int getDef() {
        return def;
    }

    public void setDef(int def) {
        this.def = def;
    }
}
